<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
{#    这里使用html配置定时刷新页面#}
{#    <meta http-equiv="refresh" content="2";url="http://127.0.0.1:5000/">#}
    <script src="/static/js/jquery-3.6.0.min.js"></script>
</head>
<body>
<button type="button" onclick="document.getElementById('demo').innerHTML=Date()">
    点击显示日期
</button>

<div id="dem">
    <form action="">
    <ol>
        <li>
           <input type="text" name="sz" value="{{ zzj1_1 }}==>{{ zzj1}}">
        </li>
        <li>
            <input type="text" name="ht" value="{{ zzj2_1 }}==>{{ zzj2 }}">
        </li>
        <li>
            <input type="text" name="dh" value="{{ zzj3_1 }}==>{{ zzj3 }}">
        </li>
        <li>
            <input type="text" name="sdl" value="{{ zzj4_1 }}==>{{ zzj4 }}">
        </li>
        <li>
            <input type="text" name="sdl" value="{{ zzj5_1 }}==>{{ zzj5 }}">
        </li>
    </ol>
</form>
</div>

<script type="text/javascript">
    $(function () {
        setInterval(function () {
            $.ajax({
                url: '/',
                async:false,
                success: function () {
                    $("#dem").load('/')
            }})
        }, 1500);
    })
</script>


</body>
</html>
